<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fdk-aac: original/libSBRenc/src/invf_est.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fdk-aac
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ed137715e08969a186ec660e8ae6e2fb.html">original</a></li><li class="navelem"><a class="el" href="dir_ed04b364c633b7d989cbbfdbe7d82d9c.html">libSBRenc</a></li><li class="navelem"><a class="el" href="dir_503efe22260b46e9073f09b8bee50978.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">invf_est.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Inverse Filtering detection prototypes.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;sbr_encoder.h&quot;</code><br />
<code>#include &quot;<a class="el" href="sbr__def_8h_source.html">sbr_def.h</a>&quot;</code><br />
</div>
<p><a href="invf__est_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_d_e_t_e_c_t_o_r___p_a_r_a_m_e_t_e_r_s.html">DETECTOR_PARAMETERS</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_d_e_t_e_c_t_o_r___v_a_l_u_e_s.html">DETECTOR_VALUES</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">SBR_INV_FILT_EST</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9f44649ad3d409732c0e9c6ddc547b1b"><td class="memItemLeft" align="right" valign="top"><a id="a9f44649ad3d409732c0e9c6ddc547b1b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>INVF_SMOOTHING_LENGTH</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a9f44649ad3d409732c0e9c6ddc547b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:afb3c414feb5f9b9cdb8c0e721c374228"><td class="memItemLeft" align="right" valign="top"><a id="afb3c414feb5f9b9cdb8c0e721c374228"></a>
typedef <a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">SBR_INV_FILT_EST</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>HANDLE_SBR_INV_FILT_EST</b></td></tr>
<tr class="separator:afb3c414feb5f9b9cdb8c0e721c374228"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a07e0bd5c5da8eb8036a349eea68f22df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="invf__est_8h.html#a07e0bd5c5da8eb8036a349eea68f22df">FDKsbrEnc_qmfInverseFilteringDetector</a> (<a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a> hInvFilt, FIXP_DBL **quotaMatrix, FIXP_DBL *nrgVector, <a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *indexVector, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> startIndex, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> stopIndex, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> transientFlag, INVF_MODE *infVec)</td></tr>
<tr class="memdesc:a07e0bd5c5da8eb8036a349eea68f22df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Estiamtion of the inverse filtering level required in the decoder.  <a href="invf__est_8h.html#a07e0bd5c5da8eb8036a349eea68f22df">More...</a><br /></td></tr>
<tr class="separator:a07e0bd5c5da8eb8036a349eea68f22df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaab5d9601a6b2c1fa95c485a8ba4d4c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="invf__est_8h.html#aaab5d9601a6b2c1fa95c485a8ba4d4c7">FDKsbrEnc_initInvFiltDetector</a> (<a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a> hInvFilt, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *freqBandTableDetector, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> numDetectorBands, <a class="el" href="machine__type_8h.html#afff0ab3629a68bc1bb3b2a2f4296173f">UINT</a> useSpeechConfig)</td></tr>
<tr class="memdesc:aaab5d9601a6b2c1fa95c485a8ba4d4c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize an instance of the inverse filtering level estimator.  <a href="invf__est_8h.html#aaab5d9601a6b2c1fa95c485a8ba4d4c7">More...</a><br /></td></tr>
<tr class="separator:aaab5d9601a6b2c1fa95c485a8ba4d4c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72888c66aee6ce108dc65b94551dd3eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="invf__est_8h.html#a72888c66aee6ce108dc65b94551dd3eb">FDKsbrEnc_resetInvFiltDetector</a> (<a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a> hInvFilt, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *freqBandTableDetector, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> numDetectorBands)</td></tr>
<tr class="memdesc:a72888c66aee6ce108dc65b94551dd3eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">resets sbr inverse filtering structure.  <a href="invf__est_8h.html#a72888c66aee6ce108dc65b94551dd3eb">More...</a><br /></td></tr>
<tr class="separator:a72888c66aee6ce108dc65b94551dd3eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Inverse Filtering detection prototypes. </p>
<dl class="section rcs"><dt>Revision</dt><dd>92790 </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aaab5d9601a6b2c1fa95c485a8ba4d4c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaab5d9601a6b2c1fa95c485a8ba4d4c7">&#9670;&nbsp;</a></span>FDKsbrEnc_initInvFiltDetector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> FDKsbrEnc_initInvFiltDetector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a>&#160;</td>
          <td class="paramname"><em>hInvFilt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *&#160;</td>
          <td class="paramname"><em>freqBandTableDetector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>numDetectorBands</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#afff0ab3629a68bc1bb3b2a2f4296173f">UINT</a>&#160;</td>
          <td class="paramname"><em>useSpeechConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize an instance of the inverse filtering level estimator. </p>
<dl class="section return"><dt>Returns</dt><dd>errorCode, noError if successful. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hInvFilt</td><td>Pointer to a handle to the <a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">SBR_INV_FILT_EST</a> struct. </td></tr>
    <tr><td class="paramname">freqBandTableDetector</td><td>Frequency band table for the inverse filtering. </td></tr>
    <tr><td class="paramname">numDetectorBands</td><td>Number of inverse filtering bands. </td></tr>
    <tr><td class="paramname">useSpeechConfig</td><td>Flag: adapt tuning parameters according to speech </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a07e0bd5c5da8eb8036a349eea68f22df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07e0bd5c5da8eb8036a349eea68f22df">&#9670;&nbsp;</a></span>FDKsbrEnc_qmfInverseFilteringDetector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FDKsbrEnc_qmfInverseFilteringDetector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a>&#160;</td>
          <td class="paramname"><em>hInvFilt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL **&#160;</td>
          <td class="paramname"><em>quotaMatrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FIXP_DBL *&#160;</td>
          <td class="paramname"><em>nrgVector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#af3e70e9edd31fb299154d959c70ac6bf">SCHAR</a> *&#160;</td>
          <td class="paramname"><em>indexVector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>startIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>stopIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>transientFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INVF_MODE *&#160;</td>
          <td class="paramname"><em>infVec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Estiamtion of the inverse filtering level required in the decoder. </p>
<p>A second order LPC is calculated for every filterbank channel, using the covariance method. THe ratio between the energy of the predicted signal and the energy of the non-predictable signal is calcualted.</p>
<dl class="section return"><dt>Returns</dt><dd>none. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hInvFilt</td><td>Handle to the <a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">SBR_INV_FILT_EST</a> struct. </td></tr>
    <tr><td class="paramname">quotaMatrix</td><td>The matrix holding the tonality values of the original. </td></tr>
    <tr><td class="paramname">nrgVector</td><td>The energy vector. </td></tr>
    <tr><td class="paramname">indexVector</td><td>Index vector to obtain the patched data. </td></tr>
    <tr><td class="paramname">startIndex</td><td>Start index. </td></tr>
    <tr><td class="paramname">stopIndex</td><td>Stop index. </td></tr>
    <tr><td class="paramname">transientFlag</td><td>Flag indicating if a transient is present or not. </td></tr>
    <tr><td class="paramname">infVec</td><td>Vector holding the inverse filtering levels. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a72888c66aee6ce108dc65b94551dd3eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72888c66aee6ce108dc65b94551dd3eb">&#9670;&nbsp;</a></span>FDKsbrEnc_resetInvFiltDetector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> FDKsbrEnc_resetInvFiltDetector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">HANDLE_SBR_INV_FILT_EST</a>&#160;</td>
          <td class="paramname"><em>hInvFilt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *&#160;</td>
          <td class="paramname"><em>freqBandTableDetector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>&#160;</td>
          <td class="paramname"><em>numDetectorBands</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>resets sbr inverse filtering structure. </p>
<dl class="section return"><dt>Returns</dt><dd>errorCode, noError if successful. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hInvFilt</td><td>Handle to the <a class="el" href="struct_s_b_r___i_n_v___f_i_l_t___e_s_t.html">SBR_INV_FILT_EST</a> struct. </td></tr>
    <tr><td class="paramname">freqBandTableDetector</td><td>Frequency band table for the inverse filtering. </td></tr>
    <tr><td class="paramname">numDetectorBands</td><td>Number of inverse filtering bands. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
